package com.zyong.design.pattern.decorator.case1;

/**
 * @program: zyong-design-pattern
 * @ClassName: Decorator
 * @author: zyong
 * @create: 2024-04-27 23:50
 */
public abstract class Decorator implements Component {
    protected Component component;

    public Decorator(Component component) {
        this.component = component;
    }

    @Override
    public void operate() {
        component.operate();
    }
}
